import request from "@/utils/request";

// 查询用户提现列表
export function listBizUserTixian(query) {
  return request({
    url: "/biz/bizUserTixian/list",
    method: "get",
    params: query
  });
}

// 查询用户提现详细
export function getBizUserTixian(id) {
  return request({
    url: "/biz/bizUserTixian/" + id,
    method: "get"
  });
}

// 查询用户所有提现
export function getUserTixianAllAmount(query) {
  return request({
    url: "/biz/bizUserTixian/getUserTixianAllAmount",
    method: "get",
    params: query
  });
}

// 新增用户提现
export function addBizUserTixian(data) {
  return request({
    url: "/biz/bizUserTixian",
    method: "post",
    data: data
  });
}
// 用户提现重新打款
export function torePay(data) {
  return request({
    url: "/biz/bizUserTixian/rePay",
    method: "post",
    data: data
  });
}
// getTransferBatchesDetails 对账
export function getTransferBatchesDetails(data) {
  return request({
    url: "/biz/bizUserTixian/getTransferBatchesDetails",
    method: "post",
    data: data
  });
}
//退回余额
export function rollbackAccount(data) {
  return request({
    url: "/biz/bizUserTixian/rollbackAccount",
    method: "post",
    data: data
  });
}
// 修改用户提现
export function updateBizUserTixian(data) {
  return request({
    url: "/biz/bizUserTixian",
    method: "put",
    data: data
  });
}

// 删除用户提现
export function delBizUserTixian(id) {
  return request({
    url: "/biz/bizUserTixian/" + id,
    method: "delete"
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizUserTixian/findMaxSort",
    method: "get"
  });
}
// 导出用户提现
export function exportBizUserTixian(query) {
  return request({
    url: "/biz/bizUserTixian/export",
    method: "get",
    params: query
  });
}
